package com.grant.code.myblog.entity;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class Blog {
    private Long id;
    private String title;
    private String content;
    private String summary;
    private String cover;
    private Integer readCount;
    private Integer status;
    private Long userId;
    private Long categoryId;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    
    // 关联对象（可选）
    private User user;
    private Category category;
    private List<Tag> tags;
}